package com.dragon.modules.yuegou.model.wallet;

import com.dragon.modules.yuegou.entity.wallet.MemberCardRefundEntity;
import com.dragon.modules.yuegou.enums.wallet.MemberCardRefundRefundCurrency;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 会员退卡模型类
 * 
 * @author pbuilder generated
 * @date 2019-03-05 11:27:23
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class MemberCardRefund extends MemberCardRefundEntity {

	@ApiModelProperty("卡类型")
	private String cardType;//卡类型

	@ApiModelProperty("购买")
	private String recordType;//购买

	@ApiModelProperty("手机")
	private String mobile;//手机

	@ApiModelProperty("卡名称")
	private String title;//卡名称

	@ApiModelProperty("卡号")
	private String cardNo;//卡号

	@ApiModelProperty("公司名称")
	private String companyName;//公司名称

	@ApiModelProperty("员工姓名")
	private String employeeName;//员工姓名

	@ApiModelProperty("退卡金额")
	private BigDecimal remain;

	public String getEmployeeName() {
		return employeeName;
	}

	public void setEmployeeName(String employeeName) {
		this.employeeName = employeeName;
	}

	public BigDecimal getRemain() {
		return remain;
	}

	public void setRemain(BigDecimal remain) {
		this.remain = remain;
	}

	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	public String getRecordType() {
		return recordType;
	}

	public void setRecordType(String recordType) {
		this.recordType = recordType;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	/**
	 * 构造一个空会员退卡模型对象
	 */
	public MemberCardRefund(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个会员退卡模型对象
	 * 
	 * @param entity 实体对象
	 */
	public MemberCardRefund(MemberCardRefundEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个会员退卡模型对象
	 * 
	 * @param other 其它对象
	 */
	public MemberCardRefund(MemberCardRefund other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public MemberCardRefund id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getRefundNo() {
    	return refundNo;
    }

    /**
	 * 设置退款单号（订单模块）
	 * 
	 * @param refundNo 退款单号（订单模块）
	 * @return 当前对象
	 */
    public MemberCardRefund refundNo(String refundNo) {
    	this.refundNo = refundNo;
    	return this;
    }

	@Override
	public String getMemberId() {
    	return memberId;
    }

    /**
	 * 设置会员ID（冗余ID）
	 * 
	 * @param memberId 会员ID（冗余ID）
	 * @return 当前对象
	 */
    public MemberCardRefund memberId(String memberId) {
    	this.memberId = memberId;
    	return this;
    }

	@Override
	public String getMemberWalletId() {
    	return memberWalletId;
    }

    /**
	 * 设置会员钱包ID（冗余ID）
	 * 
	 * @param memberWalletId 会员钱包ID（冗余ID）
	 * @return 当前对象
	 */
    public MemberCardRefund memberWalletId(String memberWalletId) {
    	this.memberWalletId = memberWalletId;
    	return this;
    }

	@Override
	public String getCardTemplateId() {
    	return cardTemplateId;
    }

    /**
	 * 设置悦卡模板ID
	 * 
	 * @param cardTemplateId 悦卡模板ID
	 * @return 当前对象
	 */
    public MemberCardRefund cardTemplateId(String cardTemplateId) {
    	this.cardTemplateId = cardTemplateId;
    	return this;
    }

	@Override
	public String getMemberCardId() {
    	return memberCardId;
    }

    /**
	 * 设置会员悦卡ID
	 * 
	 * @param memberCardId 会员悦卡ID
	 * @return 当前对象
	 */
    public MemberCardRefund memberCardId(String memberCardId) {
    	this.memberCardId = memberCardId;
    	return this;
    }

	@Override
	public BigDecimal getAmount() {
    	return amount;
    }

    /**
	 * 设置退卡的悦卡金额
	 * 
	 * @param amount 退卡的悦卡金额
	 * @return 当前对象
	 */
    public MemberCardRefund amount(BigDecimal amount) {
    	this.amount = amount;
    	return this;
    }

	@Override
	public BigDecimal getRefundFee() {
    	return refundFee;
    }

    /**
	 * 设置退还的金额
	 * 
	 * @param refundFee 退还的金额
	 * @return 当前对象
	 */
    public MemberCardRefund refundFee(BigDecimal refundFee) {
    	this.refundFee = refundFee;
    	return this;
    }

	@Override
	public MemberCardRefundRefundCurrency getRefundCurrency() {
    	return refundCurrency;
    }

    /**
	 * 设置[枚举]退还的币种：4-微信虚拟币-WECHAT、5-支付宝虚拟币-ALIPAY
	 * 
	 * @param refundCurrency [枚举]退还的币种：4-微信虚拟币-WECHAT、5-支付宝虚拟币-ALIPAY
	 * @return 当前对象
	 */
    public MemberCardRefund refundCurrency(MemberCardRefundRefundCurrency refundCurrency) {
    	this.refundCurrency = refundCurrency;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置退款时间
	 * 
	 * @param createdTime 退款时间
	 * @return 当前对象
	 */
    public MemberCardRefund createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getWechatTransactionId() {
    	return wechatTransactionId;
    }

    /**
	 * 设置微信交易单号（微信退款时存在）
	 * 
	 * @param wechatTransactionId 微信交易单号（微信退款时存在）
	 * @return 当前对象
	 */
    public MemberCardRefund wechatTransactionId(String wechatTransactionId) {
    	this.wechatTransactionId = wechatTransactionId;
    	return this;
    }

	@Override
	public String getWechatRefundId() {
    	return wechatRefundId;
    }

    /**
	 * 设置微信退款单号（微信退款时存在）
	 * 
	 * @param wechatRefundId 微信退款单号（微信退款时存在）
	 * @return 当前对象
	 */
    public MemberCardRefund wechatRefundId(String wechatRefundId) {
    	this.wechatRefundId = wechatRefundId;
    	return this;
    }

	@Override
	public String getWechatMchId() {
    	return wechatMchId;
    }

    /**
	 * 设置微信商户ID（微信退款时存在）
	 * 
	 * @param wechatMchId 微信商户ID（微信退款时存在）
	 * @return 当前对象
	 */
    public MemberCardRefund wechatMchId(String wechatMchId) {
    	this.wechatMchId = wechatMchId;
    	return this;
    }

	@Override
	public String getWechatSubMchId() {
    	return wechatSubMchId;
    }

    /**
	 * 设置微信子商户ID（微信退款时存在）
	 * 
	 * @param wechatSubMchId 微信子商户ID（微信退款时存在）
	 * @return 当前对象
	 */
    public MemberCardRefund wechatSubMchId(String wechatSubMchId) {
    	this.wechatSubMchId = wechatSubMchId;
    	return this;
    }
}
